From: kaf24@firebug.cl.cam.ac.uk Date: Thu, 27 Apr 2006 08:43:49 +0000 (+0100) Subject: Just allocate unbound irq only from dynirq range, since X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16108^2~75 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=c7e3f5818f210bc404194d093dcd6ca1f377ccd4;p=xen.git Just allocate unbound irq only from dynirq range, since pirq range is reserved for physical devices. This saves unnecessary checks on pirq range. Signed-off-by Kevin Tian --- diff --git a/linux-2.6-xen-sparse/drivers/xen/core/evtchn.c b/linux-2.6-xen-sparse/drivers/xen/core/evtchn.c index 55b9d4286a..92888ac62a 100644 --- a/linux-2.6-xen-sparse/drivers/xen/core/evtchn.c +++ b/linux-2.6-xen-sparse/drivers/xen/core/evtchn.c @@ -226,7 +226,8 @@ static int find_unbound_irq(void) { int irq; - for (irq = 0; irq < NR_IRQS; irq++) + /* Only allocate from dynirq range */ + for (irq = DYNIRQ_BASE; irq < NR_IRQS; irq++) if (irq_bindcount[irq] == 0) break;